home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / KeyDownBrowser / KeyDownBrowser.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  57 lines

  1. //---------------------------------------------------------------------------------------------------------
  2. //
  3. //    KeyDownBrowser
  4. //
  5. //    Inherits From:        NXBrowser
  6. //
  7. //    Declared In:        KeyDownBrowser.h
  8. //
  9. //    Class Description
  10. //
  11. //        KeyDownBrowser is a subclass of NXBrowser extended to respond
  12. //        to keyboard entry.  Arrow keys may be used for manuevering.  Other
  13. //        keystrokes are interpreted as search criteria.  The browser will attempt
  14. //        to find a match for these keystrokes within the appropriate column.
  15. //        The search will not begin until you are finished entering keystrokes. 
  16. //        The browser uses the inputTimeOut instance variable to 'know' when 
  17. //        this is (i.e. the search will begin inputTimeOut seconds after the last 
  18. //        keystroke. 0.5 seconds is the default.). Selection within the browser 
  19. //        by arrow keys or by keystroke matching is equivalent to a single mouse 
  20. //        click and sends the action to the target.  Pressing the Return key is 
  21. //        equivalent to a double-click and sends the double action to the target.  
  22. //        KeyDownBrowser overrides NXBrowser's default arrow key behavior, 
  23. //        instead providing the more intuitive behavior found in the Workspace 
  24. //        Manager browser.  Rules for search behavior were modeled after WM 
  25. //        as well.
  26. //        
  27. //
  28. //    Disclaimer
  29. //
  30. //        You may freely copy, distribute and reuse this software and its
  31. //        associated documentation. I disclaim any warranty of any kind, 
  32. //        expressed or implied, as to its fitness for any particular use.
  33. //
  34. //---------------------------------------------------------------------------------------------------------
  35. #import <appkit/appkit.h>
  36.  
  37. @interface KeyDownBrowser : NXBrowser
  38.  
  39. {
  40.     STR                searchString;
  41.     BOOL            wantsCaseSensitiveSearch;
  42.     float                inputTimeOut;
  43.     DPSTimedEntry    timedEntry;
  44. }
  45.  
  46.  
  47. //---------------------------------------------------------------------------------------------------------
  48. //     Accessors
  49. //---------------------------------------------------------------------------------------------------------
  50. - wantsCaseSensitiveSearch: (BOOL) aFlag;
  51. - (BOOL) wantsCaseSensitiveSearch;
  52.  
  53. - inputTimeOut: (float) aFloat;
  54. - (float) inputTimeOut;
  55.  
  56.  
  57. @end